package com.sg.dto.base.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc ConfItemClassDto
 * @使用场景
 */
@Data
public class ConfItemClassDto extends BaseDto implements Serializable {

    /**
     * 配置方案下分组ID:
     */
    @ApiModelProperty("配置方案下分组ID")
    private String confItemClassId;

    /**
     * 配置项分组标识:
     */
    @ApiModelProperty("配置项分组标识")
    private String confItemClassCode;

    /**
     * 配置项分组名称:
     */
    @ApiModelProperty("配置项分组名称")
    private String confItemClassName;
    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        ConfItemClassDto that = (ConfItemClassDto) o;
        return confItemClassId == that.confItemClassId && confItemClassCode == that.confItemClassCode && confItemClassName == that.confItemClassName && subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), confItemClassId, confItemClassCode, confItemClassName, subjectLifeCycle);
    }

}
